#ifndef USER
#define USER
#include <string>
#include <vector>
#include "../book/book.h"

class user
{
public:
    user();
    user(std::string name,std::string pwd);
    std::string username;
    bool CheckPassword(std::string pwd);
    bool ChangePassword(std::string oldpwd,std::string newpwd);
    void borrowbook(book* book);
    bool returnbook(book* book);
    bool isadmin;
    std::vector<book*> borrowedbooks;
private:
    std::string password;

};

#endif